<template>
	<view>
		<view class="all_text">
			<!-- 头部介绍 -->
			<view class="introduce">
				<text class="i_fir">定期理财</text>
				<text class="i_sec">超500,000+人购买</text>
			</view>
			<view class="introduce_sec">
				<text>甄选金融机构优质产品，收益稳健，期限丰富。可挑选多款不同期限产品，省心投资，安心持有。</text>
			</view>
			<!-- 产品抢购 -->
			<view class="run_on">
				<text class="run_fir">明星产品</text>

				<view class="ro_sec">
					<text>券商资管</text>
					<view class="ros_text"><text>
							天风天泽76天
						</text></view>
				</view>

				<view class="ro_trd">
					<view>
						<text class="red_text">4.05<text>%</text></text>
						<view class="gray_text"><text>业绩比较基准</text></view>
					</view>
					<view style="line-height: 50rpx;">
						<text class="blak_text">76天</text>
						<view class="gray_text"><text>50000元起购</text></view>
					</view>
					<view class="blue_btn">
						<text style="padding-left: 20rpx;">去抢购</text>
					</view>
				</view>

				<view class="ro_fou">
					<view><text class="yellow_text">限时抢购</text></view>
					<view style="margin-left: 20rpx;"><text class="yellow_text">无需开户</text></view>
				</view>
			</view>
			<!-- 二级导航 -->
			<view class="nav_sec">
				<text :class="currentnav==item.id ? 'activenav' : ''" class="gray_text " v-for="item in navData"
					:key='item.id'>
					{{item.text}}
				</text>

			</view>
			<!-- 产品介绍 -->
			<view class="product">
				<navigator url="/pages/particulars/particulars" hover-class='none'>
					<view class="pro_small" v-for="item in productData" :key='item.id'
						:class='item.id==5 ? "laststyle":""'>
						<view class="pro_fir">
							<text style="padding-right: 10rpx;">{{item.tp1}}</text>
							<text style="border-left: 2rpx solid #999999;padding-left: 10rpx;">{{item.tp2}}</text>
							<view style="margin-left: 20rpx;"><text class="yellow_text">{{item.tp3}}</text></view>
							<view style="margin-left: 20rpx;" v-if="item.tp4"><text
									class="yellow_text">{{item.tp4}}</text></view>
						</view>
						<view class="pro_sec">
							<view>
								<text class="red_text">{{item.tb1}}<text>%</text></text>
								<view class="gray_text"><text>{{item.tb2}}</text></view>
							</view>
							<view style="line-height: 50rpx;">
								<text class="blak_text">{{item.tb3}}</text>
								<view class="gray_text"><text>{{item.tb4}}</text></view>
							</view>
							<view class="red_othertext" v-if="item.id==5">
								<text>3月9日</text>
								<view style="margin-top: 10rpx;"><text>10点开售</text></view>
							</view>
						</view>
					</view>
				</navigator>


			</view>

		</view>
		<!-- 底部 -->
		<view class="bottom">
			<view class="bo_text">
				<text class=".gray_text">没有找到合适的产品？ 去逛逛基金吧</text>
			</view>
		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				navData: [{
						id: 1,
						text: '全部'
					},
					{
						id: 2,
						text: '60天内'
					},
					{
						id: 3,
						text: '60天-1年内'
					},
					{
						id: 4,
						text: '1年以上'
					}
				],
				currentnav: 1,
				productData: [{
						id: 1,
						tp1: "券商资管",
						tp2: "齐鲁锦泉28天",
						tp3: "限时抢购",
						tp4: "无需开户",
						tb1: "3.05",
						tb2: "业绩比较基准",
						tb3: "28天",
						tb4: "券商出品 | 低风险"
					},
					{
						id: 2,
						tp1: "券商资管",
						tp2: "天风天泽76天",
						tp3: "限时抢购",
						tp4: "无需开户",
						tb1: "4.05",
						tb2: "业绩比较基准",
						tb3: "76天",
						tb4: "券商出品 | 低风险"
					},
					{
						id: 3,
						tp1: "报价回购",
						tp2: "中信建投固收宝",
						tp3: "限时抢购",
						tp4: "无需开户",
						tb1: "6.00",
						tb2: "业绩比较基准",
						tb3: "28天",
						tb4: "券商出品 | 低风险"
					},
					{
						id: 4,
						tp1: "报价回购",
						tp2: "中信建投固收宝",
						tp3: "限时抢购",
						tp4: "无需开户",
						tb1: "3.35",
						tb2: "业绩比较基准",
						tb3: "14天",
						tb4: "券商出品 | 低风险"
					},
					{
						id: 5,
						tp1: "投连产品",
						tp2: "国货节节高A款",
						tp3: "限时抢购",
						tb1: "5.91",
						tb2: "历史年化投资回报率",
						tb3: "可持终身",
						tb4: "券商出品 | 低风险"
					}
				]
			}
		},
		methods: {

		}
	}
</script>

<style scoped lang="scss">
	//底部
	.bottom {
		height: 180rpx;
		width: 750rpx;
		text-align: center;
		color: #ffffff;
	}

	.bo_text {
		margin-top: 44rpx;
		background-image: url(../../static/particularsHome/arrwos.png);
		background-repeat: no-repeat;
		background-position: 577rpx 17rpx;
	}

	//产品介绍
	.red_othertext {
		text-align: center;
		color: #f85656;
		font-size: 20rpx;
		position: absolute;
		left: 570rpx;
		bottom: -285rpx;
	}

	.pro_small {
		width: 642rpx;
		margin: 30rpx 30rpx;
		border-bottom: 2rpx solid #ccc;
	}

	.product {
		margin-top: 30rpx;
		background-repeat: no-repeat;
		border: 2rpx solid #ccc;
		border-radius: 20rpx;
		box-shadow: 0 0 2rpx 2rpx #cccccc;
		background-position: 564rpx 0rpx;
	}

	.pro_fir {
		display: flex;
		align-items: center;
	}

	.pro_sec {
		display: flex;
		width: 480rpx;
		margin-top: 30rpx;
		margin-bottom: 30rpx;
		justify-content: space-between;
	}

	.laststyle {
		border: none;
		background-image: url(../../static/particularsHome/salelbc.png);
		background-position: 490rpx 20rpx;
		background-repeat: no-repeat;
	}

	//特殊字体颜色
	.red_text {
		color: #f85656;
		font-size: 44rpx;
		font-weight: bold;

		text {
			font-size: 28rpx;
		}
	}

	.blak_text {
		font-size: 32rpx;
		color: #333333;
		font-weight: bold;
	}

	.gray_text {
		font-size: 24rpx;
		color: #999999;
	}

	.yellow_text {
		font-size: 20rpx;
		color: #BE7F22;
		border-radius: 4rpx;
		background-color: #fcf5ec;
		padding: 10rpx 10rpx;
	}

	//激活导航
	.activenav {
		color: #ffffff;
		font-size: 28rpx;
		background-color: #3476f1;
		padding: 10rpx 20rpx;
		border-radius: 8rpx;
	}

	// 头部介绍
	.all_text {
		width: 702rpx;
		margin: 0 24rpx;
	}

	.introduce {
		display: flex;
		justify-content: space-between;
		margin-top: 44rpx;
		align-items: center;

	}

	.i_fir {
		font-size: 44rpx;
		color: #333333;
		font-weight: bold;
	}

	.i_sec {
		font-size: 22rpx;
		color: #333333;
	}

	.introduce_sec {
		margin-top: 40rpx;
		font-size: 28rpx;
		color: #666666;
		line-height: 44rpx;
	}

	// 产品抢购
	.run_on {
		height: 260rpx;
		margin-top: 30rpx;
		background-image: url(../../static/particularsHome/bc.png);
		background-repeat: no-repeat;
		border: 2rpx solid #ccc;
		border-radius: 20rpx;
		box-shadow: 0 0 2rpx 2rpx #cccccc;
		background-position: 564rpx 0rpx;
	}

	.run_fir {
		position: absolute;
		left: 610rpx;
		top: 267rpx;
		font-size: 24rpx;
		color: #ffffff;
	}

	.ro_sec {
		display: flex;
		margin-top: 30rpx;
		font-size: 28rpx;
		color: #333333;
		font-weight: bold;
		margin-left: 30rpx;
	}

	.ros_text {
		margin-left: 10rpx;
	}

	.ro_trd {
		margin: 0 30rpx;
		margin-top: 20rpx;
		display: flex;
		justify-content: space-between;
	}

	.blue_btn {
		width: 164rpx;
		text-align: center;
		font-weight: bold;
		height: 62rpx;
		background-color: #3476f1;
		color: #ffffff;
		font-size: 28rpx;
		line-height: 62rpx;
		border-radius: 32rpx;
		background-image: url(../../static/particularsHome/go.png);
		background-repeat: no-repeat;
		background-position: 20rpx 20rpx;
		margin-top: 20rpx;

	}

	.ro_fou {
		margin-left: 30rpx;
		display: flex;

	}

	// 二级导航
	.nav_sec {
		margin-top: 40rpx;
		display: flex;
		width: 560rpx;
		justify-content: space-between;
		align-items: center;
	}
</style>
